﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FrienDev.Api;

namespace FrienDev.SystemApps
{
    public class ClubApplication : FrienDevApplication
    {
        public override string GetTrackText(int type, string[] parameters)
        {
            string result = "";
            switch (type)
            {
                case 0:
                    for (int i = 0; i < parameters.Length; i = i + 2)
                    {
                        result += string.Format("<a href='{0}'>{1}</a> ",
                         "/Club/Detail.aspx?clubid="+parameters[i], parameters[i + 1]);
                    }
                    result = string.Concat("加入了 ", result, " 俱乐部");
                    break;
            }
            return result;
        }
    }
}
